<?php

namespace IMT\UserBundle\Form;

use Symfony\Component\Form\FormBuilderInterface;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class ParticipantFormType extends AbstractType
{
    
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
    	
    	$builder
    		->add('person', new PersonFormType());
    }
    
    public function getDefaultOptions(array $options)
    {
    	return array(
    			'data_class' => 'IMT\UserBundle\Entity\Participant',
    	);
    }

    public function getName()
    {
        return 'participant_form';
    }
}
